package com.mengmablog.blog.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

public class Comments {
    private Integer id;

    private Integer articleId;

    private Integer pid;

    private String name;

    private String email;

    private String website;

    private Integer agree;

    private Integer disagree;

    private String ip;

    private String agent;

    private Date created;

    private String content;

    public Comments(Integer id, Integer articleId, Integer pid, String name, String email, String website, Integer agree, Integer disagree, String ip, String agent, Date created, String content) {
        this.id = id;
        this.articleId = articleId;
        this.pid = pid;
        this.name = name;
        this.email = email;
        this.website = website;
        this.agree = agree;
        this.disagree = disagree;
        this.ip = ip;
        this.agent = agent;
        this.created = created;
        this.content = content;
    }

    public Comments() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public Integer getpid() {
        return pid;
    }

    public void setpid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website == null ? null : website.trim();
    }

    public Integer getAgree() {
        return agree;
    }

    public void setAgree(Integer agree) {
        this.agree = agree;
    }

    public Integer getDisagree() {
        return disagree;
    }

    public void setDisagree(Integer disagree) {
        this.disagree = disagree;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent == null ? null : agent.trim();
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }
}